<?php

    #-------------------------------------------------------------#
	# This file is part of the Tekuna MVC Microframework for PHP. #
	# (c) 2009 Niels Jäckel <niels.jaeckel@tekuna.org>            #
	# Please visit http://tekuna.org/ for more information.       #
	#                                                             #
	# This software is licensed under the MIT License. Please     #
	# view the LICENSE file for the full text of this license.    #
    #-------------------------------------------------------------#


	// check existence of APPLICATION_ROOT constant
	if (! defined('APPLICATION_ROOT')) {

		// error header
		header('HTTP/1.1 500 Internal Server Error');

		// message
		echo 'The APPLICATION_ROOT constant must be defined. Please pay attention to the trailing slash.';

		// and finish
		exit;
	}

	// set maximum error reporting
	error_reporting(E_ALL | E_STRICT);

	// turn off HTML in error messages
	ini_set('html_errors', false);

	// define root directory of the framework
	define('TEKUNA_ROOT', dirname(__FILE__) . DIRECTORY_SEPARATOR);

	// init the timezone settings
	date_default_timezone_set('Europe/Berlin');

	// load framework class
	require_once TEKUNA_ROOT .'org/tekuna/base/Tekuna.class.php';

	// load error and exception handlers
	require_once TEKUNA_ROOT .'org/tekuna/base/global_functions.php';

	// initialize the framework
	Tekuna :: getInstance();


